home *** CD-ROM | disk | FTP | other *** search
- /*
- ** getcurs.c
- **
- ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
- ** Redistributed by permission.
- */
-
- #include <dos.h>
- #include "pictor.h"
-
- /*
- ** Returns the text cursor position as an integer.
- ** The low byte is the column, high byte is the row.
- */
- int getcurs(void)
- {
- union REGS regs;
-
- regs.h.ah = 0x03;
- regs.h.bh = (unsigned char)_PL_page;
- int86(0x10,®s,®s);
- regs.x.dx += 0x0101;
-
- return(regs.x.dx);
-
- } /* getcurs */
-